package com.wj.service;

import com.wj.domain.vo.BookShelfVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface BookShelfService {

    int isShelf(HttpServletRequest request, Long bookId);

    int updateShelf(Long bookId, Long id, int sort);

    List<BookShelfVO> queryByUserId(Long id);

    int addShelf(HttpServletRequest request, Long bookId);

    int deleteShelf(Long bookId, Long userId);

    BookShelfVO findByBookId(HttpServletRequest request, Long bookId);

    void updateShelfChapter(HttpServletRequest request, Long bookId, int sort);
}